API to flush cache tags?

We plan to use the new cache tag supplied with 5.1 SP6. We've been asked
          whether there is a programmatic way to flush the cache. Has anyone found a
          way to do this? In lieu of such a facility we plan to set the cache to
          timeout more often than we might otherwise.
          Felix Hack
          [email protected]
          

Did you try this:
          <jsp:include page="a.jsp?_cache_refresh=true"/>
          <jsp:include page="b.jsp"/>
          w cheng <[email protected]> wrote:
          > However is there a way to just force refresh an included
          > JSP ? The following is sample:
          > test.jsp
          > --------
          > .....
          > <jsp:include page=a.jsp>
          > .....
          > <jsp:include page=b.jsp>
          > .....
          > Inside a.jsp and b.jsp, there are wl:cache tags. My question
          > is how to force refresh the cache content of a.jsp but not
          > affecting cache inside b.jsp ?
          > Thanks!
          > Dimitri Rakitine <[email protected]> wrote:
          >>I think it works similarly to 'key' cachetag parameter - it searches
          >>parameter,...,application,session for cacherefresh=true and invalidates
          >>the
          >>cache if it finds it, for example:
          >>
          >>test.jsp:
          >>
          >><%@ taglib uri="taglib.tld" prefix="wl" %>
          >><HTML>
          >><BODY>
          >>Current time is:
          >><wl:cache timeout="2h">
          >><%= System.currentTimeMillis() %>
          >></wl:cache>
          >></BODY>
          >></HTML>
          >>
          >>and http://localhost:7001/test.jsp will show cached time and you can
          >>force refresh by calling it like:
          >>http://localhost:7001/test.jsp?_cache_refresh=true
          >>
          >>I guess in a similar way you can put cacherefresh=true to the request
          >>parameter, attribute, session or servlet context.
          >>
          >>Felix Hack <[email protected]> wrote:
          >>> Could someone provide an example of flushing the cached data for a
          >>cache tag
          >>> for an entire application? I don't understand what kind of entity
          >>> cacherefresh is (see below). Here is the relevant extract from the
          >>WL
          >>> 5.1documents:
          >>
          >>> "You can force the refresh of a cache by setting _cache_refresh to
          >>true in
          >>> the scope that you want affected. If you want all caches to always
          >>refresh,
          >>> put it in the application scope. If you want all the caches for a user
          >>to be
          >>> refreshed, set it in the session scope. If you want all the caches
          >>in the
          >>> current request to be refreshed set it as a parameter or in the request."
          >>
          >>> --
          >>> Felix Hack
          >>> [email protected]
          >>
          >>Dimitri
          Dimitri
          

Similar Messages

  • V$bh and flush cache

    I issued alter system to flush cache (shared_pool, buffer_cache)
    after the command I ran a query against v$bg and those objects are still there .....
    should't the just "vanished" from the view after I flush the cache ?
    thanks
    S.

    Hello Sahar,
    SQL> select * from v$bh where file# = 83 and block# = 169444;
         FILE#     BLOCK#     CLASS# STATUS         XNC FORCED_READS FORCED_WRITES LOCK_ELEMENT_ADD LOCK_ELEMENT_NAME LOCK_ELEMENT_CLASS D T P S D N       OBJD        TS#
            83     169444         78 xcur             0            0             0 00                                                    N N N N N N 4294967295          7
    SQL> alter system flush buffer_cache;
    System altered.
    SQL> select * from v$bh where file# = 83 and block# = 169444;
         FILE#     BLOCK#     CLASS# STATUS         XNC FORCED_READS FORCED_WRITES LOCK_ELEMENT_ADD LOCK_ELEMENT_NAME LOCK_ELEMENT_CLASS D T P S D N       OBJD        TS#
            83     169444         78 free             0            0             0 00                                                    N N N N N N 4294967295          7Take a look at the STATUS - my database version 10.2.0.2
    Regards
    Stefan

  • G4 error: ATA Drive claims FLUSH CACHE EXT

    Hello,
    I have three Mac at my home. On of these, my G4/450 with 120GB HD and 512Gb RAM, some days ago doesn't start. Appear boot gray screen with Apple's logo and not continue with the boot.
    If I start in Super User mode with Command-S at the start I see this error:
    _*WARNING: ATA Drive claims FLUSH CACHE EXT feature support but does not claim Extended LBA feature support*_
    How can I solve this problem?
    Thank you and sorry for my bad english.

    Start in Single User mode I have tryed to boot by root user with comand: *su /etc/rc*
    This is the error the system returns:
    *dsFindDirNodes returned -14071, count = 0*
    *dsFindDirNodes returned -14071, count = 2147483646*
    *Couldn't find root user. Sleeping and trying again.*

  • Synchronization bug in Cache Tag

    We have encountered what we believe to be a serious synchronization bug in
              the Cache Tag implementation of WL 5.1.0 SP6, under Windows NT 4, using
              HotSpot Server VM 2.0. (It also happens when we use the classic VM with the
              "-classic" option.) It seems like some kind of problem with a global lock
              on the underlying cache. The problem manifests when two or more browser
              clients attempt to access a JSP with a cache tag, where the cached value has
              not yet been computed. If the system is busy computing the contents of the
              tag when the second request arrives, no result is ever returned to either
              client and no further cache tag values (even on unrelated pages) are
              returned until the server is restarted.
              Here is a very simple tag class that illustrates the problem. It simply
              pauses five seconds and then prints the end time.
              package com.splwg.web.services;
              import java.io.IOException;
              import javax.servlet.jsp.JspException;
              import javax.servlet.jsp.JspWriter;
              import javax.servlet.jsp.PageContext;
              import javax.servlet.jsp.tagext.TagSupport;
              public class TestTag extends TagSupport {
              public int doStartTag() throws JspException {
              // Pause 5 seconds
              long start = System.currentTimeMillis();
              long end = start + 5000;
              while (System.currentTimeMillis() < end) {
              JspWriter out = pageContext.getOut();
              try {
              out.print("Done - " + end);
              } catch (IOException e) {
              return SKIP_BODY;
              Here is a JSP page to drive it:
              <%@ taglib uri="taglib.tld" prefix="wl"%>
              <%@ taglib uri="test.tld" prefix="test"%>
              <html><head><title>Test tag</title></head>
              <body>
              <wl:cache timeout="20s">
              <test:test/>
              </wl:cache>
              </body>
              </html>
              And here is the test.tld file:
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib
              PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
              "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              <taglib>
              <tlibversion>1.0</tlibversion>
              <jspversion>1.1</jspversion>
              <shortname>test</shortname>
              <tag>
              <name>test</name>
              <tagclass>com.splwg.web.services.TestTag</tagclass>
              </tag>
              </taglib>
              To manifest the problem, start a fresh instance of WebLogic and have two
              browsers (nearly) simultaneously attempt to access the page. The server
              never returns to either browser, and no other page that contains a cache tag
              will return. However, WebLogic is not dead; static pages or JSP files
              without cache tags still work.
              The problem will not manifest once the cache is safely loaded, e.g. by
              having only one client make the initial access (in this case the second
              client cannot attempt to access the JSP for five seconds). Further, we
              observe that once the cache value has gone stale, the first new request
              forces a re-read, but other concurrent requests receive the previously
              cached value. Clearly this technique doesn't work when the cached value has
              not yet been populated, such as when the server has just been started.
              Has anyone else seen this problem?
              Felix Hack
              [email protected]
              

    Before you put in that effort...
    This is experimental so do it with a copy of the project.
    With the copy project closed, delete the eHlpDhtm.js and the
    projectname.pss file.
    Copy the eHlpDhtm.js from the new project you created. Open
    the project the the pss will get rebuilt.
    No scientific reason for doing that, just something that is
    minimal effort and worth a try.
    If it fails, go back to the recreation plan! Do let us know
    if it does work.

  • Ojsp cache tags

    Hi,
    it´d like to know how to use the ojsp-cache-Tags with Oracle Reports. These tags are mentioned in some documentations but there is nowhere an example how to use that tags.
    thanks in advance

    hello,
    they should be documented in the JSP area here on OTN. they are not directly related to Oracle Reports, but an extension that oracle provides to the JSP standard.
    thanks,
    ph.

  • Cache tag exceptions and deadlocks

              Weblogic 6.1 sp2 on W2K and Solaris
              If an un-caught Exception is produced from code with-in a cache tag, then the
              cache for that page will become locked until server restart
              This can be tested by throwing an Execption and displaying (using a seperate page)
              all objects in the application, the cache with the Exception will be displayed
              as xxx.lock
              This can be avioded by catching all Exceptions
              Gareth
              

    "Christian Corcino" <[email protected]> wrote in message
              news:3b5e3776$[email protected]..
              > I do not quite understand the purpose of the keys in the cache tag,
              > what are they used for.
              > These are the different keys :
              > parameter.key | page.key | request.key | application.key | session.key
              >
              > Can any one give me an example of when and how to use these keys,
              These are logical sub-keys you can use to distinguish two tags that would
              otherwise resolve to the same cached value. It helps prevent "overloading"
              the cache name with disjoint information needed to distinguish cache
              entries.
              For instance, our application supports multiple languages and uses a page
              variable called "language". Assume we want to cache the computed contents
              of a select element according to the user's language:
              <wl:cache name="selectValues_foobar" key="page.language" timeout="30m">
              [code to compute select values omitted]
              </wl:cache>
              This lets us use one name to describe the particular dataset while still
              allowing for independently cached values for differents values of
              "language".
              Felix Hack
              [email protected]
              

  • Need API for creation of tag cloud

    Hi,
    I have a requirement to create a tag cloud based on a particular business logic. Does Webcenter provide API for the same?
    Can I customize the "Tagging - Tag Cloud" task flow? If yes, how and to what extent?
    Thanks in advance,
    Anurag

    Hi  Ajit,
      No another FM is available . U can directly create using transaction SE01 .
    Or u can create using BDC .

  • API for Physical Inventory Tag Count

    Hi , Please let me know if any Public API available for updating the physical Inventory tag count ? We have requirement like update of physical counts of Inventory tags, the idea is the counts  are stored  in flat file is in same column format of Physical Inventory Tag count form in Inventory , here just we need to update the counts. let me know any public API avaialble

    According to the oracle knowledgebase, there is no Public API.  But there is an enhancement request that you might want to add your company to.
    Bug 3611131 : INTERFACE/API FOR PHYSICAL INVENTORY ADJUSTMENTS / TAGS

  • Weblogic cache tag usage experience? issues?

              I want to use weblogic custom tag "cache" in the jsp.
              I was wondering if anybody used it in high volume internet production environment.
              Experience/Issues with
              - memory usage
              - cache refresh issue while multiple threads accessing the jsp at the sam time
              - any lessons learned that you can share.
              Thanks.
              

              I want to use weblogic custom tag "cache" in the jsp.
              I was wondering if anybody used it in high volume internet production environment.
              Experience/Issues with
              - memory usage
              - cache refresh issue while multiple threads accessing the jsp at the sam time
              - any lessons learned that you can share.
              Thanks.
              

  • API for clearing cache of page items

    Is there an API for clearing the cache of page items? I see there is a procedure called CLEAR_PAGE_CACHE in APEX_UTIL package to clear the cache of all the items on a page, but wanted the equivalent for an item. Maybe I'm making this harder than needed. No idea.
    I realize there is the option of creating a page process called "Clear Cache for Items (ITEM,ITEM,ITEM)" on a page, but I am trying to do this in an application-level process.
    Shane.

    FYI... I found that using [ apex_util.set_session_state ( 'item name', '' ); ] worked for me.

  • Azure Management REST API for Azure Cache ?

    Can’t find restful azure management API to create Azure Cache ? looks like only way to create Azure Cache via Azure Portal ?
    Max

    Yes ,  I think you are right。
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • XMLSignature API doesn't generate tags separated by newlines

    Hello:
    When generating an enveloped signature (example at: http://java.sun.com/javase/6/docs/technotes/guides/security/xmldsig/GenEnveloping.java), the output signature element comes in a single line.
    I would like to produce an output with newlines after the end of the tags, I can do it by hand but if I touch the SignedInfo element the signature is not valid anymore.
    Please, any feedback or ideas about ?

    What a spectacularly rude individual.
    The point was no one can give you any help on this except Apple, they would have to alter the iPod interface to do this, hence the link to feedback. Thought I would save some words and just point you that way. In the future I'm not going to touch a key to even do that, but I think your current work around is as close as you are going to get.

  • Analyze table to flush cache

    Hi
    In the Oracle 8i Concepts book it states that
    "when the ANALYZE statement is used to update or delete the statistics of a table, cluster, or index, all shared SQL areas that contain statements referencing the analyzed schema object are flushed from the shared pool".
    I ANALYZEd a table on my server but when I subsequently looked in V$SQLAREA statements referencing the table were still there.
    Any ideas ?
    Richard Hennessy

    Hi
    In the Oracle 8i Concepts book it states that
    "when the ANALYZE statement is used to update or delete the statistics of a table, cluster, or index, all shared SQL areas that contain statements referencing the analyzed schema object are flushed from the shared pool".
    I ANALYZEd a table on my server but when I subsequently looked in V$SQLAREA statements referencing the table were still there.
    Any ideas ?
    Richard Hennessy

  • Log API: StreamHandler.flush() throws IOException ?

    For some network error reason, my logging stopped working and i noticed this exception in the console:
    java.util.logging.ErrorManager: 2
    java.io.IOException: The specified network name is no longer available
            at java.io.FileOutputStream.writeBytes(Native Method)
            at java.io.FileOutputStream.write(Unknown Source)
            at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source)
            at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(Unknown Source)
            at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(Unknown Source)
            at sun.nio.cs.StreamEncoder.flush(Unknown Source)
            at java.io.OutputStreamWriter.flush(Unknown Source)
            at java.util.logging.StreamHandler.flush(Unknown Source)
            at de.icp.logging.RollingFileHandler.publish(Unknown Source)I looked into the javadoc of StreamHandler.flush() and can't find any documented Exception that is thrown. As IOException is not an unchecked exception, this seems to be a javadoc bug, right?
    My "RollingFileHandler extends StreamHandler and my publish() looks like this:
         * Overwrites super.
        public synchronized void publish(LogRecord record) {
            if (!isLoggable(record)) {
                return;
            //check if we need to rotate
            if (System.currentTimeMillis() >= nextCycle) { //next cycle?
                role();
            super.publish(record);
            flush(); //throws IOException ??????
        }//publish()

    Hm ... i think overwriting reportError() is useful:
         * Overwrites super.
         * Reopen log file in case of an error.
        protected void reportError(String msg, Exception ex, int code) {
            super.reportError(msg, ex, code); //standard behaviour of Handler
           //on logging error, try to reopen the logfile:
            openFile();
            LogRecord record = new LogRecord(Level.WARNING, "Log file re-opened due to error:");
            record.setThrown(ex);
            publish(record);
        }//reportError()

  • SDK API - Map Styles to Tags (StyleExportTagMaps)

    Hello everybody,
    I am developing a script to specialize the export tag mapping tool on CS5.5
    I have found an object called "StyleExportTagMaps".
    I would like to know two things:
    Wich object is its parent? i.e. from which Object should it be called from to create a new "StyleExportTagMap" Object. I have unsuccessfully tried to make the call from:
    The Document Object:
    myStyleExportTagMapA = myDocument.StyleExportTagMaps.add(...)
    The Paragraph Object, which is the "MyStyleExportTag" object parent (the element, but not the list):
    myStyleExportTagMapA = myDocument.paragraphStyles.item(myStyleAName).StyleExportTagMaps.add(...)
    What values should you send to the add method as parameters 1, 4, 5? i.e:
    exportTypeParam:String
    exportTagParam:String
    exportClassParam:String
    exportAttributesParam:String
    withPropertiesParam:Object
    Thanks in advance,
    Andres Mendoza

    Hello Evreybody,
    I have allready figuered out the object's parent, and it is definatelly a ParagraphStyleItem (but the class name doesn't begin with capital letter):
    The ParagraphStyle Object, e.g:
    myStyleExportTagMapA = myDocument.paragraphStyles.item(myStyleAName).styleExportTagMaps.add( ...)
    Now I would like to know, the argument values for the 1st, 4th and 5th parameters, the add method expect to recieve (I haven't been able to create a valid StyleExportTagMap object):
    myStyleExportTagMapA = myStyleA.styleExportTagMaps.add("1st???", myXMLTagAName, "TheExportClass", "4th???", "5th???"); i.e:
    exportTypeParam:String
    exportTagParam:String
    exportClassParam:String
    exportAttributesParam:String
    withPropertiesParam:Object
    Furthermore, what I really need to know is how do you specifically map a style to a specific Tag and class value. I was trying to use "xmlExportMaps.add()" and "mapStylesToXMLTags()" methods. It is possible to map a Style to a Tag with these methods, but I couldn't figure out how to set the class associated to the Tag (this is how I found the StyleExportMap Object, which I'm trying to use), e.g:
    myStyleName: h2.fakecaps
    Expected associated Tag name: h2
    Expectede associated class name: fakecaps
    Expected "template.css" values when exporting to ePub file: h2.fakecaps{...}
    Thanks in advance,
    Andres Mendoza

Maybe you are looking for

  • What do you think I should do?

    Okay, here I go... I bought a MBP back in June 22. I returned that one because it was giving me problems, one KP (Kernel Panic) per day, the speakers sounded awful (the day I took it back they didn't even work!!) It was a week 21. Apple swapped it ri

  • Postgrey PKGBUILD?

    Does anyone have a package build for Postgrey they can share? http://isg.ee.ethz.ch/tools/postgrey/ This is greylisting software for postfix.  I'm about to build a package build; however I haven't done it with software with perl modules before and wa

  • How can I increase number of devices connected to Fusion wifi

    When adding a fifth device my printer is knocked off

  • FCE HD 3.5 help req'd - timeline items keep shifting about.

    Hey, any help would be more than appreciated... What it is, is when I delete things from one of my layers in the timeline...some of the other videos on the other layers get moved backwards the length of the thing i'm deleting. Is there a way to turn

  • Programming in 9i, transport to 6i

    We are trying to have a work platform in Windows, with Oracle 9i tools, as a programming stage. But the resulting solution should be installed then by different platforms, with other (older) versions from Oracle, Forms and Reports. Are there any prob