• Resolved andym33

    (@andym33)


    I am fairly new to web design and wordpress, and I am currently designing a sub domain WordPress multisite with a lot of my own themes. I am having trouble with theme stylesheets caching every time I make a change to the stylesheet. This only happens on the sub domain sites (not main site).

    I’ve created a few user accounts where I test theme changes to all my themes, but every time I overwrite the new css file (or completely delete it) I have to wait about 10 mins each time for it to take affect.

    I don’t have anything in the htaccess that causes any caching, I haven’t added any caching plugins. I completely flush browser caches – the same problem happens if I deleted the css file for a theme, and then go on a browser that I have never been on before, it still shows the theme with the css for 10 mins, so I don’t think the browsers are the problem. Even from a brand new install of a multisite with no plugins installed, this still occurs.

    No theme php file or any other file caches, its just when I make edits to any theme css files that I have to wait 10 mins, another thing to note is this caching never happens on my main site, only on the sub domain sites – for example, if mysite.com and a few created sites such as test1.mysite.com and test2.mysite.com all using the same theme – if I delete the css file for that theme, mysite.com will take affect straight away and show the site with no stylesheet, but test1.mysite.com and test2.mysite.com, It is on these sub domain sites where I have to wait 10 mins before the css file removes.

    I haven’t enabled any type of caching on my host, but I can only imagine it has something to do with my host. Am I missing anything here? Is there anyway I can find out why or where these css files are caching? Hope someone can help, thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Are you 100% sure there’s no caching like Mod_Pagespeed or a plugin?

    I’d have to look at your site’s headers to know for sure.

    Thread Starter andym33

    (@andym33)

    My sites are on test urls at reccoa.com, test1.reccoa.com, test2.reccoa.com and are all using the same child theme

    I have just disabled all my plugins, have 1 post on each site, and my htaccess is at the minimum for the multisite to work:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    I haven’t tried making css edits on my sub sites for a while now. Just now I kept deleting the theme css file ad replacig it and my sub sites were working correctly displaying the site with and without the stylesheet, but a few minutes later it stated again with the css file caching on sub sites.

    Another thing to note is when I install wordpress for the first time, my host automatically adds a cache plugin, but all settings are set to disable and the actual plugin is also disabled, I also need to set it to enable in my host account section to work probably. In my host account section you have the ability to enable and disable static cache, google page cache, dynamic cache, and mem cache. The static cache was enabled by default when I signed up to my host, but since then all my host caches are set to disable, and that cache plugin was fully disabled before removing that plugin. This is why I still think my host is doing some sort of caching.

    siteground.com/tutorials/supercacher/static_cache.htm

    Thread Starter andym33

    (@andym33)

    My host have confirmed that they are not caching anything because I everything is disabled.

    Sometimes it can take hours for the css file to remove (like now, but usually its aprox 10mins) so good time for anyone to test my site

    I delete my css file for my custom1 theme, that both reccoa.com and test1.reccoa.com are using.

    on reccoa.com if I view page source it says:

    <link rel='stylesheet' id='andym-css' href='https://reccoa.com/wp-content/themes/custom1/style.css?ver=2.0.2' type='text/css' media='all' />

    If I click this link I get a 404 error, rightly so because it is deleted.

    If I view page source on test1.reccoa.com it says:

    <link rel='stylesheet' id='andym-css' href='https://test1.reccoa.com/wp-content/themes/custom1/style.css?ver=2.0.2' type='text/css' media='all' />

    But if I click that link my whole css file shows, how is this possible when reccoa.com/wp-content/themes/custom1/style.css doesn’t exist? I have to wait 10 mins – hours before I can click that link and get a 404 error (which is when test1.reccoa.com will stop displaying the stylesheet.)

    so when I delete my custom1 css file and visit:

    https://reccoa.com/wp-content/themes/custom1/style.css?ver=2.0.2
    It doesn’t exsist

    https://test1.reccoa.com/wp-content/themes/custom1/style.css?ver=2.0.2
    exsists for 10 mins – few hours

    Totally confused

    Thread Starter andym33

    (@andym33)

    Resolved – I re contacted my host to investigate further to find out where these css files keep displaying when I delete them, apparently their caching service was still caching some files when I had their cache disabled, I’m now very happy because I’ve been trying to work this out for months.

    Good to know that. Because one of my clients is also using siteground and I’m having a similar issue with their caching service. Thanks.

    I am having this issue as we speak, hosting @ siteground too. Wonder if the bug is back. Contacted the helpdesk and they are investigating.

    eco7eco

    (@eco7eco)

    I’m also having this issue. SiteGround is saying that they are not caching anything, but it must be on their end. All SuperCachers off, no caching plugins on a clean WP Multisite install. I’ve changed CSS filenames, and the site is still being served the same.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Why are my theme css files caching on sub domain sites’ is closed to new replies.