Clear page cache - All except specific items

APEX 4.2.1
On a page with dozens of editable page items, when branching back to the same page on-submit, is there a way to clear cache for all items except a few (key) items? The branch attributes (via the f?p= syntax) support clearing cache for the entire page and setting specific item/value pairs but no support for exclusions.
Any ideas? Thanks

I wrote a utility procedure to do this a couple of years ago. Something like this (reusing a slightly modified version of the Shuttle item - Saving changes):
create or replace procedure clear_page_cache_except (
    p_page          in number
  , p_exclude_items in varchar2
  , p_separator     in varchar2 := ',')
is
begin
  for item in (
    select
        i.item_name
    from
        apex_application_page_items i
    where
        i.application_id = nv('app_id')
    and i.page_id = clear_page_cache_except.p_page
    minus
    select
        x.column_value
    from
        table(
          string_to_coll(
              upper(clear_page_cache_except.p_exclude_items)
            , clear_page_cache_except.p_separator)) x)
  loop
    apex_util.set_session_state(item.item_name, null);
  end loop;
end clear_page_cache_except;However IIRC we mainly used this from packages: it's not very branch-to-page friendly. Possibly use a Branch to PL/SQL Procedure with a procedure that calls <tt>clear_page_cache_except</tt> then redirects to the page?

Similar Messages

  • Clear Page cache

    Hello,
    I have a small question
    In my application, i have a Quick Search page, where the user can search throug all the data. On this page I have a 'Clear Cache For Current Application' process, and I call it on Once per session, or when reset pressed.
    The problem is that when the user goes to another page in the application, and then get back to that search page, the old searching results are still there.
    I would like to clear the page every time, when the user navigates to some other page, so that when the go back to the search page, it will be clear.
    I have a solution for that problem, but it is too clumsy. I created a Clear process on all other pages, so that when the user opens them, the search page is automatically cleared. But I have to clreate this clear process to every single other page.
    Do you think there is some other earier way to get the page cleared after navigating away from it?!?
    Thanks in Advance
    Tsveti

    Hi Scott,
    I tried to do something like that, but i guess I am not doing something right... It just is not workin...
    thats what i am doing:
    I created a new process on the search page
    Type:      Clear Cache for all Items on Pages (PageID,PageID,PageID)
    Put Search Page# as sorce (33)
    then on 'Conditional Processing' selcted 'Current Page is NOT in Exp 1'
    And there i put again 33 (search page number)
    And when i navigate to some other page, and go back to the serch page, it still doesnt clear it.
    I tried without condition, and it clears it on every load/refresh...
    I dont get what m i doing wrong.....
    Message was edited by:
    Tsveti

  • Clear page cache every time page is opened

    I have a menu page in Apex that points to 10 report pages. However each page retains the values in parameters. How can I clear the page cache every time I go from menu to individual report page? I see the CLEAR_PAGE_CACHE procedure but don't know where to place the call. I guess I haven't understood the event model of the Apex completely yet (I am from the Oracle Forms background).
    Jay

    Jay,
    You don't say how these links on the menu page are constructed. If you are using an apex list then for each list entry there would be a target page section in which you would put the target page ID in the Clear Cache field. For example, if the link goes to a page in the current application, say page 10, then you'd put 10 in the Clear Cache field.
    If you are building a link yourself, just put 10 (for page 10) in the clear-cache position of the f?p URL, e.g.,
    f?p=&APP_ID.:10:&APP_SESSION.::NO:10:P10_ITEM:&SOME_ITEM.
    Scott

  • Problem with page cache clearing

    I have a button that exits HTML DB and returns to our portal main page. That is done through a URL, and not a page number. There is no way to reset page cache with a URL branch. So I made a page that has a branch that calls the URL, and then I changed the button on the page to branch to this page and do the proper page cache resets before calling the other page that branches to the URL. However, the page cache is not being reset when I do this.
    Here is the page flow
    page 10 - Select a record for update
    page 20 - Display data using an ID that is on page 10
    If Return to Menu is clicked branch to page 1 and reset page 10 and page 20
    Page 1 - Branches to URL
    When I go back to page 10 from the application server page page 10 & 20 are still populated.
    If I change page 20's return to menu to branch to page 10, then the reset does occur. What am I doing wrong? How do I reset the pages when leaving HTML DB?

    Dwayne,
    Validations, like other components, can have conditions that observe the current request value. This value is set to the button name when a button submits the page. So you could have a condition on a validation like 'When request != Expression 1' and in the Expression 1 field type the button name (check the button attributes to confirm the case-sensitive name and submit the page in debug mode to see the value of request when you click the button).
    About clearing page cache when branching to URL -- not sure what you're after: Cache can be cleared if an HTML DB page is invoked via URL. You specify clear-cache options in the branch definition which you can observe in the URL that invokes the target page. If you mean that you want the cache of one or more HTML DB pages to be cleared "when" a branch to a non-HTML DB page is taken, that doesn't really make sense because nothing much happens during a branch except to call the HTML DB engine's accept procedure or to do a URL redirect. So all you can do is specify some action to happen "before" a branch is taken, e.g., clear cache on pages x,y,z using a page process, or specify that the clear cache action is to occur "after" the branch is taken as manifested in the resulting URL to an HTML DB page. For something to happen "when" a branch is being done presumably would be after page processing but before a redirect, which we already support in the form of page processes.
    Scott

  • Clear KM Cache using API

    Hi All,
    We have a requirement to clear the KM cache every day in the morning for two of the items in Cache Monitor.  I would like to know if we could clear the cache for the selected items using some API or any and schedule a job so that it runs every day to clear the cache.
    Appreciate any suggestions for the same.
    Regards,
    Aruna.

    check out this one:
    http://help.sap.com/javadocs/NW04S/current/km/com/sapportals/wcm/util/cache/package-summary.html
    something like
    CacheFactory.getCache(id).clearCache()
      should do the trick

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    It's possible that the pages you are attempting to open simply won't work with that old web browser.
    If you're using Mac OS X Tiger, update to the latest version, which is 10.4.11. (You might be using that already. Your profile says you're running 10.4.1, but I bet that's just a typo.)
    Then get the latest version of Safari that will run on Tiger. (And... you have that already: 4.1.3.)
    You might try a more modern browser designed specifically for your current OS. That would be TenFourFox.
    Information on TenFourFox:
    http://en.wikipedia.org/wiki/TenFourFox
    Download TenFourFox here:
    http://www.floodgap.com/software/tenfourfox/

  • I am having a hard time with a page that is working for everyone else. When I click on anything in the site I get a message that says "The page you were looking for doesn't exist."  This is happening on both my ipad 2 and my iphone 5. I cleared my cache

    When I click on anything in the site I get the message " The page you were looking for doesn't exist."  This website works for everyone else, but not on my iPad 2 or iPhone 5. I cleared my cache and history on the iPad, but it still isn't working.

    I live in Germany and my credit card is in my native country of Holland .. then it
    doesn't accept my credit card.
    Your first statement explains the second statement. To use the German iTunes Store, you need to prove that you're a resident of Germany (that is required by the content owners who will not allow cross-border sales) and the only way Apple can provide such a verification is by requiring that you enter in either a German credit card or a German-purchased iTunes prepaid card. Since I presume the former is not a possibility, you'll need to do the latter if you wish to purchase content from the iTunes Store. Again, this is not Apple's choice but is forced on them by the content owners as a requirement for Apple being allowed to sell the content. The EU is working on regulations that would force the content owners to allow access pan-EU, but that's still in the works.
    You do not need an iTunes Store account to activate and run your iPad, though; at least, I didn't need one for either of my two iPads. If you only want to set up an account so you can get free iPad apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is apparently critical. This seems to come and go, or only apply to App Stores in specific countries, so you may not see the option for "None" when asked for a payment type.
    As to the German iTunes Store in English, you can comment to Apple on that via their feedback pages:
    http://www.apple.com/feedback
    Regards.
    P.S. Regarding "this is the only place for a complaint and that will no doubt get removed because
    I'm not full of happy joy sparkles.
    As stated in the terms of use to which we all agreed, this isn't a complaint forum, it's a technical support forum. You don't have to be full of "happy joy sparkles", but posts that are nothing but complaints may indeed be removed. If you want to complain to Apple, use the feedback pages.
    Message was edited by: Dave Sawyer

  • When I go to Yahoo Mail from the home page all of the items (folders) are listed on the left but the rest of the page is blank. The mail opens just fine if I start with explorer, so it cannot be a Yahoo problem.

    I need to figure out how to get the mail page to load properly in Firefox. Can anyone help?
    I have been having to open Explorer to get my Yahoo mail

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to clear Prompt valus For a specific Prompt in Dashboard page

    Hi Friends,
    I am using "clear" button for clearing all the values in all the prompts in my Dashboard page in Presentation services of obiee.
    But I want to implement this "clear" values for only a specific Prompt which I want, among all the prompts in Dashboard page.
    Is their any way to implement code for that one or any solution to implement.
    Thanks in Advance...
    Chiru.

    This should be possible through java scripting. If you need a work around for this, refer to the below link:
    http://debaatobiee.wordpress.com/2009/10/25/obiee-save-current-selection/
    Thanks,
    -Amith.

  • After using my browser (any of them) for a period of time I get a message saying that a page can't be opened. I have to reboot again. Clearing the cache doesn't help.

    After using my browser (any of them) for a period of time I get a message saying that a page can't be opened. I have to reboot again. Clearing the cache doesn't help. It's very annoying. It even happened in the middle of a chat with Apple online support. I'd be very grateful for help!

    Several things come to mind ... when you say your wife uses the same system with a different login and doesn't have issues, that suggests looking at your login items. Go to System Preferences (on your dock or on your hard drive in Applications), accounts, and on your account look at login items. Anything there that shouldn't be or isn't used? If you don't know, create a new account for yourself with no login items, and see if you still have the issue.
    Next, I would run OnyX, which is a free disk maintenance program. You can download it from http://www.titanium.free.fr/download.php . Do the tasks on the cleaning and maintenance tabs. Before using any disk maintenance software, you should have a system backup. I periodically run it, and others have found that it can help with performance.
    You might look at how you're system is using memory. You should have enough but it's easy to check. Bring up the Activity Monitor (on your hard drive in Applications/Utilities), and look at the system memory tab. Note page ins and page outs. If page outs are 10% to 15% more than page ins, you can use more memory for the programs you run. A page out occurs when memory is full and OS X has to write a section of memory to the hard drive. Too much of this can really impact performance. The optimal situation is for page outs to be zero.  Note these  values reset on a system boot.

  • Click a tab - Clear the Corresponding Page Cache

    When a user clicks a tab and they are taken to a search page that is assigned to that tab, I would like the cache of that page to be cleared so that
    all previous entries in search fields are gone.
    I would only like this clearing-out to happen when the page is entered via the tab and not when the page is refreshed as would happen following running a search.
    Can this be done ?
    Thanks!
    L

    Hi
    You could make your unconditional branch pass a request value and then make the clear cache process conditional on the request value not being equal to that??
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • I have to clear the cache about 20 times a day to see pages normally

    About a month ago I started having to clear my cache in order to see pages normally. I will open a page, and it will look like a non-html version. Once I clear the cache and reload the page it works fine. I am having to do this about 20 times a day with multiple sites. I am using version 3.6.6 with Vista.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Expire all local cache entries at specific time of day

    Hi,
    We have a need for expiring all local cache entries at specific time(s) of the day (all days, like a crontab).
    Is it possible thru Coherence config ?
    Thanx,

    Hi,
    AFAIK there is no out of the box solution but certainly you can use Coherence API along with quartz to develop a simple class that can be triggered to remove all the entries from the cache at certain time. You can also define your custom cache factory configuration and an example is available here http://sites.google.com/site/miscellaneouscomponents/Home/time-service-for-oracle-coherence
    Hope this helps!
    Cheers,
    NJ

  • In safari, On my Ipad2,I get the error message, "too may redirects" and the page won't load. Anyone with advice? I have cleared the cache, cookies, and history and restarted.

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

Maybe you are looking for

  • Simple Question on SQL.

    I have three tables. Two entity tables and one relation table. Table A(AKey, priority, field3, field4) Table B(BKey, field5, field6) Table C(AKey, priority, BKey) The fields AKey and priority form the primary key for the Table A and the field BKey fo

  • Output in Email Body Formatting Warped

    Hi All I am completly new to powershell & am googling about for code. I have been able to so far to send the results of a powershell query by email and am mightly impressed it worked. When the query is done on the command line it works great, by emai

  • I can't seem to install plugins in Final Cut Pro X.

    I have tried to install the Magic Bullet LUT Buddy in several different folders and can't seem to get it to install, once I go into Final Cut it is never visible, can someone let me know what I'm doing wrong? I'm fairly new to Macs.

  • My website won't display smartphone version on smartphone

    Hi All, As the title says, I've designed a website but it goes to the desktop version when I visit on my smartphone. FYI, I am not hosting this site with Business Catalyst - someone I know has his own server and he is hosting it for me. I have my own

  • Resizing Column Width in Pivot Tables

    Hi, Can anyone help with adjusting the size of columns in a pivot table. I have 3 measure across 12 months on a page: Total Volume Total Margin (%) Total Contribution Market Jan 2010 Feb 2010 Mar 2010 Apr 2010 May 2010 Jun 2010 Jul 2010 Jan 2010 Feb