WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Caching, a pain on OS X Server (4 posts)

  1. JesperA
    Member
    Posted 4 years ago #

    Hi!

    So yeah caching is the greatest thing ever and everyone should use it, my previous server was a Ubuntu server and it worked great with everything related to WordPress!

    Then i got lazy and wanted a GUI based Apache admin since i change alot of stuff all the time, i bought a Mac Mini Server and everything worked great, or so i thought!

    After a couple of hours usage getting all the vhost up and running with WordPress i noticed that the login/logout feature didnt work properly, when i logged in everything worked as expected, but when i logged out it still showed me being logged in even though i wasnt, i had to make a hard page refresh on every page i still was logged in to or clear my browsers cach, this was without WP Super Cache

    So after alot of research i cleared OS X Servers header cache with this:

    Header Set Cache-Control "max-age=0"
    		<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|css|js)$">
    			Header set Cache-Control "public"
    			Header set Expires "Fri, 18 Nov 2011 20:00:00 GMT"
    			Header unset Last-Modified
    		</FilesMatch>

    The thing is that even without WP Super Cache i had like 25-30ms per page load, even down to 9 at one time but after the above fix in my vhost.conf file the page load time was now about 400-500ms, i then installed WP Super Cache and everything worked as expected, i had version 0.9.8, yesterday i installed version 0.9.9.3 and everything broke again!

    It works if i use "half-on mode" (fingers crossed) but i would like to use full mode, but then the logout doesnt work properly!

    Anyone else that have run into this problem, there must be someone else that is running WordPress on OS X Server?

    Would really appreciate any feedback!

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 4 years ago #

    That code just makes your browser not images, videos and css files. You should read up more about configuring Apache!

  3. JesperA
    Member
    Posted 4 years ago #

    That code is just a reset code, it caches everything:
    http://www.jespera.se/temp/cache.png

    The 100ms image is just _utm from google analytics so that is fine, everything else get cached the right way!

    But when i use WP Super Cache, WordPress doesnt flush the browser cache which means it still looks like i am logged in when i am not!

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 4 years ago #

    Make sure you have the Apache modules installed that are mentioned in the readme.txt

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic