What is the scope of queries cached with cachedwithin on CF10? Server or application?

Hello

We have recently migrated to CF8 to CF10 and noticed an unexpected behavior on our queries cached.

We are a news site and have two applications on our server (CF 10, 5.8 64-bit Centos), one for the front end for the readers and the other for the administrators of the site. We have made extensive use of queries cached, always with cachedwithin and always on CFCS. When a user reads an article, request that retrieve the article is put in cache for 15 minutes, and if an administrator makes a change on this article, after the update, we call exactly the same read request with a cachedwithin (0,0,0,0) to clear the data cache.

It worked well until upgrading to CF 10, when we realized that calls for cleaning of the application (s) were not working. After many tests we noticed that if we call the inner query cache cleaning the scope of readers, then it is properly cleared the cache for the readers. The same exact query called administrators field only clears the cache for administrators, not the readers.

Reading the documentation of cache I found references to fields of application different ehcache, but I don't know if these scopes also applies to the cachedwithin cached queries. Also, supposed to be the scope of default cache is server, moot...

For example, queries are hidden with cachedwithin cached on a scope, as it seems? Is it possible to change it so better cached on a server scope? Would be better to migrate to cache such as cachePut() and cacheRemove() functions?

Thanks in advance,

(please forgive my bad English, some practices need more to write...)

Cool, yes Rob Brooks-Bilson has added a comment to my blog article, pointing to the appropriate in the docs page.

As well as doing the CFAdmin setting, we can also do in Application.cfc:

Is not the default, but it redefines it to work the previous versions how the CF worked.

--

Adam

Tags: ColdFusion

Similar Questions

  • What are the methods to ESXi upgrade with 1 single ESXi Server?

    The server requires her to get any update through the update maintenance Manager or VMA is not possible that both run on the ESXi server.

    What options are left during a server ESXi 4.0 to ESXi 4.1? I can think of root direct-ssh access and the 'host Update Utiliy', even if that fails with errors.

    You must use the vCLI, then update the host vihostupdate.pl. Page 55 @ http://www.vmware.com/pdf/vsphere4/r41/vsp_41_upgrade_guide.pdf

    iDLE-jAM | SC 2, SC 3 & VCP 4

    If you have found this device or any other answer useful please consider useful or correct buttons using attribute points

  • My Clickfree automatic backup drive has stopped working, with my iMac, what is the best replacement to use with Time machine

    My Clickfree automatic backup drive I had for many years stopped working with my iMac, what is the best replacement to use with Time Machine.

    I can't even reformat the drive to try to start over, then think its time I invested in a high today but don't know where start looking so any advise would be a great help.

    Thank you guys

    A lot of users on these forums recommend OWC (www.macsales.com) Mercury Elite Pro series JEP due to their durability, affordability and quality of construction. I have about 6 of them connected to my iMac and have never had a speaker to fail. When a hard drive fails, substitute is a 5-minute process to re - use the box. To help you get started, you can find the line to: https://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB

    You can find them in various ways and with a variety of configurations of connection so you can find the one that best fits your needs.

    Good luck!

  • I currently have creative cloud of a photographer.  I must add my subscription first.  What is the best way to go with the best available prices?

    I currently have creative cloud of a photographer.  I must add my subscription first.  What is the best way to go with the best available prices?

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud for plans.

    Otherwise, you can talk with the sales of Adobe as well.

    I recommend going for the plan of single-app.

    Kind regards

    Sheena

  • What is the best way to work with Word documents in The InDesign CS4?

    I work in Microsoft Word 2007 and all my documents have.doc format.

    What is the best way to work with Word documents in InDesign CS4?

    David Blatner says to avoid copying and pasting text from Word instead of placing (Ctrl + D).

    How to paste RTF or text Document?

    I want to do a book layout in ID CS4 and its main feature is that there is the left page with the text and the right - with graphics.

    So, if I understand correctly place the text on each page I create for example 70 Word documents and place each element on 70 pages left?

    He loks like wasting time. I have supplements another way to make such provision?  What kind?

    It is best to place any text.

    You can have all your text in a single file and debit allows you to add text, images and pages as necessary block (hold down the SHIFT key when you click the loaded text cursor), but it is somewhat atypical for the thread on one side of the spread in the perspective of automatic flow, so you don't have to set up properly.

    It is a case where a block of text that you type will work to your advantage. On your master page, add a text block to the left page, but not to the right (or at least not donned one to the right - for another project you can actually two threads of independent text). Hold the cursor of the load on a frame on the left side of a page document and auto-flux. ID will add new spreads as needed, but only to put the text on the left side.

    Peter

  • What is the interaction between appellant VIs and subVIs using VI Server?

    I am student at the CLAD and one of the lines in the document preparation or here is the following:

    What is the interaction between appellant VIs and subVIs using VI Server?

    I know how to use the function "Call for reference" to call a VI, but not necessarily a Subvi. I thought a Subvi is always loaded with the calling VI and has nothing to do with the server of VI. What Miss me?

    Hi Bmihura,

    I think that this article will clear up how the VI Server works with subVIs called statically or dynamically.

    Call a VI by reference

    Best regards

  • What is the largest HARD drive compatible with my 2008 Macbook soon?

    What is the largest capacity disk HARD compatible with my 2008 MacBook internal early?

    I believe that the largest capacity 2.5 "drives are 2 TB https://eshop.macsales.com/shop/hard-drives/2.5-Notebook/

  • What are the databases, we can use with html5 in playbook

    What is the best database used with html5 in playbook

    The answer lies in the developer site very well documented of the RIM:

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/database.html

    LocalStorage might be easier to use:

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/localStorage.html

  • What is the best configuration of network with 4 NICs (2 x 10GB and 2 x 1 GB)

    I have 4 hosts running ESXi 4 Enterprise license with 2 x 10GB and NIC 2 x 1 GB, what is the best configuration of network to be used in this configuration? where FT logging should go? I can't add NICs more because it is on the HP blades.

    It's my current setup:

    Thank you

    Dan

    You talk about the c3000 blade enclosure, aren't you?

    For a solution tolerant when disaster strikes, you will go probably with:

    VSwitch0 has.)

    Physical NIC: vmnic0 (1 Gbps) + vmnic2 (10 GB/s)

    (A.1) VMkernel Port Group (network management)

    vmnic0 = standby

    vmnic2 = active

    (A.2) VMkernel Port Group (Vmotion)

    vmnic0 = active

    vmnic2 = standby

    Networks of Virtual Machine A.3)

    vmnic0 = standby

    vmnic2 = active

    VSwitch1 B.)

    Physical NIC: vmnic0 (1 Gbps) + vmnic3 (10 GB/s)

    (B.1) VMkernel Port Group (Fault Tolerance)

    vmnic1 = standby

    vmnic3 = active

    -Default - VMware uses round robin to assign a virtual computer to one vmnic.

    So you don't configure port aggregating on the switches.

    You can, however, traffic using if possible VIRTUAL networks, this is why you must configure the ports as junction ports.

    André

  • What is the best way to deal with a 'Implicit coercion' in a table to a sprite?

    Hi all!

    With the continued support of this forum, I'm getting closer to have a programme of work. I can't wait to be able to help others like me once I've finished learning the ropes of AS3.

    I'll briefly explain what I want to achieve and then followed with my question.

    Background

    I created a random number of 12 x 9 grid that fills each cell with an image, based on the numeric value of each cell. I also have a random play button that makes random numbers in the grid. The problem I am running became my click event of button to erase the current images off the grid in order to allocate the new (for example by removing the objects display battery in order to place the new ones in the same places).

    Question

    My question is this: what is the best way to manage an implicit constraint from a table to a sprite? I pasted my complete code below so that you can see how the functions are supposed to work together. My sentence is apparently not being able to use a value from array with a sprite (sprite represents the real layout of the grid on the pile of display while the table starts as a number that is assigned an image that must be transmitted to the sprite).

    ============================================================================

    package
    {
    import flash.display.MovieClip;
    import flash.display.DisplayObject;
    import flash.events.MouseEvent;
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.utils.getDefinitionByName;

    SerializableAttribute public class extends MovieClip Blanko
    {
    Contains 12 * 9 grid of cells.
    var grid: Sprite;
    Maintains the shuffle button.
    var shuffleButton:Sprite;
    Is equal to 12 columns, 9 lines.
    var cols: int = 12;
    lines of the var: int = 9;
    Equal number of grid cells (108).
    cells var: int = COL * rows;
    Sets of cell width and height to 40 pixels.
    var cellW:int = 40;
    var cellH:int = 40;
    Contains 108 images of cell.
    var imageArray:Array = [];
    Contains 108 numerical values for the cells in the grid.
    var cellNumbers:Array = [];

    Constructor calls the functions "generateGrid" and "makeShuffleButton".
    public void Blanko()
    {
    generateGrid();
    makeShuffleButton();
    }

    Creates and displays the grid 12 * 9.
    private function generateGrid (): void
    {
    grid = new Sprite;
    var i: int = 0;


    for (i = 0; i < cells; i ++)
    {
    cellNumbers.push (i % 9 + 1);
    }
    trace ("before shuffle:", cellNumbers);
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);
    var _cell:Sprite;

    for (i = 0; i < cells; i ++)
    {

    / / This line is where the implicit constraint occurs. '_cell' is a leprechaun trying

    on a temporary basis equal to a value from array.
    _cell = drawCells (cellNumbers [i]);
    _cell.x = (I % cols) * cellW;
    _cell.y = (I / COL) * cellH;

    grid.addChild (_cell);
    }
    }

    Creates a "shuffle" button and adds a mouse click event.
    private function makeShuffleButton (): void
    {
    var _label:TextField = new TextField();
    _label. AutoSize = 'center ';
    TextField (_label) .multiline = TextField (_label) .wordWrap = false;
    TextField (_label) .defaultTextFormat is new TextFormat ("Arial", 11, 0xFFFFFF, "bold");.
    _label. Text = "SHUFFLE";
    _label.x = 4;
    _label.y = 2;
    shuffleButton = new Sprite();
    shuffleButton.graphics.beginFill (0 x 484848);
    shuffleButton.graphics.drawRoundRect (0, 0, _label.width + _label.x * 2, _label.height +)
    _label.y * 2, 10);
    shuffleButton.addChild (_label);
    shuffleButton.buttonMode = shuffleButton.useHandCursor = true;
    shuffleButton.mouseChildren = false;
    shuffleButton.x = grid.x + 30 + grid.width - shuffleButton.width;
    shuffleButton.y = grid.y + grid.height + 10;
    this.addChild (shuffleButton);
    shuffleButton.addEventListener (MouseEvent.CLICK, onShuffleButtonClick);
    }

    Erase the images of the cell, mix of their numbers and then assigned these new images.
    private function onShuffleButtonClick (): void
    {
    eraseCells();
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);


    for (var i: int = 0; i < cells; i ++)
    {
    drawCells (cellNumbers [i]);
    }
    }

    Deletes any existing cells in the battery of the display image.
    private void eraseCells(): void
    {
    While (imageArray.numChildren > 0)
    {
    imageArray.removeChildAt (0);
    }
    }

    Changes cell phones numbers (makes random table).
    private void shuffleCells(_array:Array):void
    {
    var _number:int = 0;
    var _a:int = 0;
    var _b:int = 0;
    var _rand:int = 0;

    for (var i: int = _array.length - 1; i > 0; i-)
    {
    _rand = Math.Random () * (i - 1);
    _A = _array [i];
    _B = _array [_rand];
    _ARRAY [i] = _b;
    [_Rand] _ARRAY = _a;
    }
    }

    Retrieves and sets a custom image to a cell based on its numerical value.
    private void drawCells(_numeral:int):Array
    {
    var _classRef: Class = Class (getDefinitionByName ("skin" + _numeral));
    _classRef.x = 30;
    imageArray.push (_classRef);
    imageArray.addChild (_classRef);
    return of demonstration;
    }
    }
    }

    ===========================================================================

    Any help with this is greatly appreciated. Thank you!

    If you want to have an array of Sprites that you later clear that is fine. But this does not mean that your function should return to it.

    You need your function to return the sprite so that you can add it to the display list and everything what you need.

    So just have the function get Sprite, push it in the "toBeClearedInTheFutureArray" and then return a reference to the currently acquired sprite.

  • What is the function of drive D with respect to the C drive with regard to performing backups of disk?

    I noticed that when I back up the drive 'local disk' C drive D "recovery" appears as a choice of backup also.

    If I look at the contents of D drive, it reflect to some extent the contents of the C drive.  However, it also seems to be very comprehensive, showing only 2 GB free of possible 12 GB.

    First of all, what is the purpose of the D drive?  I don't remember when I put anything in there manually.

    Secondly, I should back up disk and drive C clear D?  Not that it would take long or take a lot of place, but it's too redundant to do?

    Thanks for any comments on the ground!

    Kootiekat

    I noticed that when I back up the drive 'local disk' C drive D "recovery" appears as a choice of backup also.

    If I look at the contents of D drive, it reflect to some extent the contents of the C drive.  However, it also seems to be very comprehensive, showing only 2 GB free of possible 12 GB.

    First of all, what is the purpose of the D drive?  I don't remember when I put anything in there manually.

    Secondly, I should back up disk and drive C clear D?  Not that it would take long or take a lot of place, but it's too redundant to do?

    Thanks for any comments on the ground!

    Kootiekat

    D is something your OEM (Original Equipment Manufacturer - the company that brought the computer in a package deal for you like HP, Dell, Gateway, Lenovo, etc) put it there in case you need to restore the default values.

    I would like to backup everything.  The worst of the method chosen, it's that you probably do not have CD/DVD to restore the system in the event of a failure of hard drive... so, this hard drive dies and * poof *-you have nothing.

  • What is the best way to deal with the pages being removed from the site in British Colombia?

    A customer wants a page removed from their Web site; What is the best way to go about removing/deleting a page in British Colombia and keep all attributed to the laid-off page SEO ranking?

    Should I delete the page and then add URL redirect via the module to redirect BC a relevant page.

    or

    I have to keep the page alive but 301 redirect using the property of the redirection page 301 in addition to Options?

    One is better than the other?

    Redirect via the page is there if you want to keep the page for any reason content wise, etc. in the admin. Web site wise is no different. A 301 redirect is a redirect 301 Grant, there is no difference.

  • What is the best way and to share data between a server and a Client app?

    Hello

    I'm trying to communicate a Client-Server application.

    In fact, I already have a simple data transfer via TCP/IP. However, I don't know yet, if TCP/IP is the best (and by that I mean, better, faster, safer, etc.)

    How to do.

    What are the cons and Pros between TCP/IP, STM and shared Variable?

    Do you recommend another type of communication in addition to these 3?

    Thank you

    Matt.

    In my view, that a general question cannot have a response says.

    Then, there is no way 'the best' for sharing data between a client and a server app.

    I like to use TCP/IP, but sometimes (when data loss is not critical) I use UPD (quick and dirty).

    I generally avoid shared variables, especially on embedded devices.

    Some other times I have I like to Exchange data in a database...

    A few other times I Exchange data using file...

    Marco

  • What is the scope of the user when created with the API?

    I noticed that users created with the Adobe Connect API for my account/meeting are always listed in the Administration-> area users and groups.  Which probably means that the login of the user is valid for my meetings.  So if they wanted to register or attend a meeting controlled by someone else, they would have to re - register or be re-created by this administration.  Is this correct?

    I'm trying to confirm what I know how to enroll a user on my site.  It would be ideal that my site would record the user and also to connect the user without the user to enter a separate password (my site would be to generate and store the password).  If the API creates a user only for my meetings so this isn't a problem.  The user must always just go on my site go to the meeting.  However, if the user created by my account Adobe API can be used to access / register for meetings of others on Adobe then this approach is not so good because the user would need to know their password.

    If this is your account login, then you or the person with the account, would be the only ones who could change their password. And for the user to do so, they must connect Connect Central and then my profile and then change their PW. Alternatively, they could use the forgot my password link on any page that requires to log on. So, if you pass authentication for them to join the room, they have, in theory will never see a screen connection or central connection. Are there other administrators to your account that would change passwords of users?

  • What is the best CMS for use with DW - CS6

    DW CS6 using, what would be the recommended CMS to use?

    Ok.  Well boom is a good starting point.  But there are moments where it may not be the right choice.  There is no one-size-fits-all CMS.  They are big, small, and all the rest. So base your choice on the following criteria.

    • needs of the customer,
    • ease of use,
    • budget,
    • coding skills necessary to deploy it.

    OPEN SOURCE:

    ================

    Get some Simple CMS-

    PHP, no database required.

    http://get-simple.info/

    WordPress

    PHP MySql & required

    http://WordPress.org

    COMMERCIAL

    ================

    Adobe Business Catalyst (subscription includes CMS & web hosting)

    http://www.BusinessCatalyst.com/

    You might also be interested in the products of the Web help to build your own CMS:

    CSS Web sites customized in Dreamweaver with extension Design | WebAssist

    Nancy O.

Maybe you are looking for