Support » Fixing WordPress » sidebar: old script showing after ftp new one

  • Resolved emmu

    (@emmu)


    Hi, I got a problem that I would usually identify as a cache problem. But after doing everything I could with all browsers(cleaning caches, using different browsers, forcing browsers to use newest) the problem still persists:

    I use content / sidebar in a theme, and in the sidebar I use PHP
    to display the right folder content out of a choice of 20 folders: `switch ($page_id)
    {
    case 21:
    include “content_online/yasinsky/yasinsky.php”;
    break;

    case 24:
    include “content_online/cornelissen/cornelissen.php”;
    break;

    }`

    Always fine, just recently it seems wordpress doesn’t use the new script (1 page_id and 1 folder added) but displays the old script with no sidebar content for the new page. To check it, I changed the script and called the new folder with an old page_id: no change, the old folder was displayed.

    I deleted the sidebars in the theme and in the child theme, but after the fallback and the ftp-upload again there was no change.

    what could I do now?
    Thankyou!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Tim Nash

    (@tnash)

    Spam hunter

    Do you make use of server side caching plugin, or using a caching service such as cloudflare?

    Thread Starter emmu

    (@emmu)

    to mmake it more descriptive,
    the script:

    <?php switch ($page_id) {
    ...
    case 1312:
        include "content_online/mackintosh/mackintosh.php";
        break;
    
    case 1360:
        include "content_online/koch/koch.php";
        break;
    }
    ?>

    the functioning link (sidebar imcludes):
    http://linesfiction.de/lf/?page_id=1312

    not functioning, new script added (no sidebar):
    http://linesfiction.de/lf/?page_id=1360

    thanks for your help

    Thread Starter emmu

    (@emmu)

    @ Tim

    no I don’t. Maybe my host does?

    Thread Starter emmu

    (@emmu)

    Success reaches those who know how to wait.
    It took 4 days!

    @tim, maybe you can give a hint which culprit was using cache or is there no clue?

    Thanks for your attention

    Tim Nash

    (@tnash)

    Spam hunter

    If you yourself are not using any caching, or using a service like cloudflare, then it could well have been your host, a lot of the managed WordPress hosting companies use Varnish and similar under the hood. Glad its working.

    Thread Starter emmu

    (@emmu)

    @tim Unfortunately it’s not working …
    I have 2 installations, one german language one english, both calling the same sidebar(with images and a custom script), the PHP script calling is identical, only different page_IDs.

    The german installation does it right by now, the english installation, holding the folder with the sidebar sometimes gives out crab other times an old version, and I’m now witing for 6 days for the cache(??) to disappear.

    german
    http://linesfiction.de/lfd/?page_id=1246
    english
    http://linesfiction.de/lf/?page_id=1360

    who is most likely responsible?

    Thanks

    Tim Nash

    (@tnash)

    Spam hunter

    AS mentioned before, if you are not doing the caching then most likely its your host, so best chatting to them. If you look in the response headers you should be able to see what is caching, be it Varnish or similar for example.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘sidebar: old script showing after ftp new one’ is closed to new replies.