WordPress.org

Ready to get started?Download WordPress

Forums

CSS caching problems (8 posts)

  1. sikwate
    Member
    Posted 2 years ago #

    Hi,

    I have been working on this particular site for months and just yesterday, the CSS cant be updated or it takes too long (2-3 hours). Im not sure on which area of the site was change- if its on the server settings, FTP, or WordPress configs.

    Even if I deleted the CSS file via FTP, It still can be seen if I checked it in the browser and when i checked the file again via FileZilla ftp, turns out it was successfully deleted totally different from what the browsers showed me.

    I noticed a w3 total cache plugin installed, and I deactivated it but still the caching problems occurs. I tried talking to the server's web-master but they said there were no changes in the server settings in the last few weeks. Also the same problems goes with the images.

    I got to solve this problem asap to continue my work. Any help would do. thank you.

  2. Teo
    Member
    Posted 2 years ago #

    Are you able to update css via ftp? Does the upload work faster?
    Are you able to edit and update css via Admin Dashboard ? Does it work fast enough?
    Are you able to edit and update css file from the file manager in your Cpanel?

    Which of the 3 methods above has problems and which works?

  3. sikwate
    Member
    Posted 2 years ago #

    Are you able to update css via ftp? Does the upload work faster?

    yes it updates via ftp but not when i tried to view it on the browsers. It updates on the browsers after 5-6 hours.


    Are you able to edit and update css via Admin Dashboard ? Does it work fast enough?

    i havent tried that never edited CSS file via admin before. I tried searching for it before replying to this message but hasnt been any luck.

    Are you able to edit and update css file from the file manager in your Cpanel?

    yes i was able to edit via cpanel filemanager but the changes doesnt show when i view it on the browser.

    here is another case that may show the real problem.

    • i open ftp and edit style.css
    • i saved the changes
    • i opened the style.css again via ftp and noticed that the changes were successfully saved.
    • i open the url of the style.css on mozilla, chrome and IE but the changes are not there.

    I even tried deleting the style.css and then when i tried opening it to the browser, its still exists.

  4. Elan Technosys
    Member
    Posted 2 years ago #

    Are you using any caching plugins?

  5. Teo
    Member
    Posted 2 years ago #

    Tell your word press not to cache css file, using a random number.

    <?php
     srand( microtime() * 1000000);
     echo "?nocache=".rand(1,100);

    See this example: http://zeitblog.com/699/avoid-caching-files-in-wordpress

    To edit .css from admin panel, see this clip: http://www.youtube.com/watch?v=VeYUUtkWiAo

  6. sikwate
    Member
    Posted 2 years ago #

    Are you using any caching plugins?

    my client installed w3 total cache and after that the problem occurs but even if I uninstalled the plugin, the problem is still there. and it seems that w3 total cache plugin messed with the core files including the .htaccess file.
    http://wordpress.org/extend/plugins/w3-total-cache/

  7. sikwate
    Member
    Posted 2 years ago #

    Tell your word press not to cache css file, using a random number.

    <?php
     srand( microtime() * 1000000);
     echo "?nocache=".rand(1,100);

    See this example: http://zeitblog.com/699/avoid-caching-files-in-wordpress

    To edit .css from admin panel, see this clip: http://www.youtube.com/watch?v=VeYUUtkWiAo

    thanks this solved a bit. the problem is i cant the css file on the wp_head hooks.

  8. Frederick Townes
    Member
    Posted 1 year ago #

    It doesn't sound like W3TC is doing minification, so I'm not sure how I can help.

Topic Closed

This topic has been closed to new replies.

About this Topic