• 0

Wordpress Image Caching?


Question

I am using Wordpress as the CMS for my site currently, When i changed the image for the background of my page, and deleted the old image, Like normal i refreshed my browser and deleted all cache and cookies. However the old image is sill presented. I even went to a computer that had NEVER seen the website before and it is cached there as well. Is there a setting that will turn this off so that I can see the new image on the site. It only appears to work for this particular image the other images are without issues on the site so that is very confusing for me.

The site

The correct image

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Use this meta tag:

<meta http-equiv="Cache-control" content="no-cache">

No dice does not seam to work :(

Link to comment
Share on other sites

  • 0

Try using absolute url. Right now the background is set to url("/bgbody.png") so it is picking up the image from the root of the site. Using url("images/bgbody.png") is the other thing you could try.

Link to comment
Share on other sites

  • 0

This is not an issue with "Wordpress" cache nor does Wordpress cache by default.

In your stylesheet you have:

body {
background:url("/bgbody.png") no-repeat scroll center 0 #132533;
color:#EEEEEE
font-family:trebuchet ms,arial,helvetica,sans-serif;
margin:auto;
padding:0 0 15px 14px;
text-align:center;
width:960px;
}

This means it is using the following image for your body: http://littleneutrino.com/bgbody.png

If you want to use http://www.littleneutrino.com/main/wp-content/themes/pixel/images/bgbody.png you will need to change it to the following:

body {
background:url("images/bgbody.png") no-repeat scroll center 0 #132533;
color:#EEEEEE
font-family:trebuchet ms,arial,helvetica,sans-serif;
margin:auto;
padding:0 0 15px 14px;
text-align:center;
width:960px;
}

Your stylesheet is under /pixel/ is that means you need to adjust your slashes to correlate with the correct directory position.

So let's say you had style.css under /css/ which would be "/pixel/css/style.css" and you wanted to link to an image you would use "../images/bgbody.png" It is the "../" that tells it to go back one directory (from css) for /images/. We wouldn't use "images/" as that would imply the folder is under /css/ (/pixel/css/images) and you would have a 404 logged each time as that image would not exist. You use "/bgbody.png" which tells it to look under the root/main folder of your account. Which oddly enough is also where you have that image uploaded.

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/directories.htm

Link to comment
Share on other sites

  • 0

This is not an issue with "Wordpress" cache nor does Wordpress cache by default.

In your stylesheet you have:

body {
background:url("/bgbody.png") no-repeat scroll center 0 #132533;
color:#EEEEEE
font-family:trebuchet ms,arial,helvetica,sans-serif;
margin:auto;
padding:0 0 15px 14px;
text-align:center;
width:960px;
}

This means it is using the following image for your body: http://littleneutrino.com/bgbody.png

If you want to use http://www.littleneutrino.com/main/wp-content/themes/pixel/images/bgbody.png you will need to change it to the following:

body {
background:url("images/bgbody.png") no-repeat scroll center 0 #132533;
color:#EEEEEE
font-family:trebuchet ms,arial,helvetica,sans-serif;
margin:auto;
padding:0 0 15px 14px;
text-align:center;
width:960px;
}

Your stylesheet is under /pixel/ is that means you need to adjust your slashes to correlate with the correct directory position.

So let's say you had style.css under /css/ which would be "/pixel/css/style.css" and you wanted to link to an image you would use "../images/bgbody.png" It is the "../" that tells it to go back one directory (from css) for /images/. We wouldn't use "images/" as that would imply the folder is under /css/ (/pixel/css/images) and you would have a 404 logged each time as that image would not exist. You use "/bgbody.png" which tells it to look under the root/main folder of your account. Which oddly enough is also where you have that image uploaded.

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/directories.htm

Yeah it turns out that i was linking to the wrong image and i feel really stupid about it.

Link to comment
Share on other sites

  • 0

I had a problem with a previous WP site of mine which basically did the same. It didn't change the header image so, I looked around on the Dashboard and found this plugin (which seems to be default with WP3) called "WP Super Cache".

I disabled it, cleared the cache, uploaded and "installed" the new header image, then put it back on and voila... It worked

Link to comment
Share on other sites

  • 0

Chris, that's not a default plugin. The only two plugins that are standard when you setup WP are Akismet and Hello Dolly. You probably added WP Super Cache and forgot you did :p

I had a problem with a previous WP site of mine which basically did the same. It didn't change the header image so, I looked around on the Dashboard and found this plugin (which seems to be default with WP3) called "WP Super Cache".

I disabled it, cleared the cache, uploaded and "installed" the new header image, then put it back on and voila... It worked

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.