How to archive a wordpress site (make it read only)

Assuming you have shell access, or access to any Linux/Unix box, you could use wget to download the entire site to static html files: wget –recursive –no-clobber –page-requisites –html-extension –domains domain.com http://domain.com Then either upload or move these files to your web root (after backing up and removing your WP installation). I imagine it’s also … Read more

Which WordPress pages/URLs should never be cached?

You should not cache anything in the admin so your examples are correct. A typical nginx reverse proxy cache is set to ignore wp\-.*\.php|wp\-admin Another option is to not cache logged in users by checking the wp cookies, but you probably don’t have that level of control. ps. It is highly advisable you test this … Read more

Fragment caching increasing database queries

You are using transient API which works storing data on wp_options table by default. That means that additional database queries will be performed to set the transient and to get the transient. With your code the number of queries should be less for non-logged in users in second and subsequent visits when the transient exists … Read more

How to use cache with simplepie

The example your using from the codex adds and removes it (probably not something you want to do), and is not very clear. By default WordPress will cache the feed for 12 hours using wp_feed_cache_transient_lifetime, the actual code WP uses for 12 hours is $lifetime = 43200 If you want to alter the cache time … Read more

wp_cache_set() or wp_cache_add()

According with WP Object API documentation both functions accepts these arguments: $key: the key to indicate the value. $data: the value you want to store. $group: (optional) this is a way of grouping data within the cache. Allows you to use the same key across different groups. $expire: (optional) this defines how many seconds to … Read more

Automatically Refresh WordPress Stylesheet

“Quick” fix: Right Click -> view page source ( ctrl+U ), find .css file you changed, open it in new tab and reload ( you should see change in place you’ve made it ) ONLY in development mode add php function time() in place of version number wp_enqueue_style( $handle, $src, array(), time() , ‘all’ ); … Read more

Does a low traffic WordPress site need a caching plugin and a CDN

Static page cache is trade-off of resources for speed. The larger and more complex site is, the more resources it takes to cache it. Since there is no such thing as unwanted speed, static cache of small sized site is one of the best performance improvements possible. Especially on shared hosting where other tweaking options … Read more

WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]

There are two steps necessary to make sure that the browsers fetch the updated HTML pages (ex: home page). Step 1 Uncheck ‘Set expires header’ at your site’s wp-admin/admin.php?page=w3tc_browsercache#html_xml, for ‘HTML & XML’ files. Whenever a browser sees an Expires header, it (the browser) will fetch the next version of that particular HTML page only … Read more

techhipbettruvabetnorabahisbahis forumueduedueduseduedusedusedusedusedusedus