Wouldn't some decent, representative input sample data be wonderful?
Try
Thank you. That printed all cached files from ./wp-content/cache/wpo-cache/5X.XX.XX.XX/index.html, I will try using them in CSP. I guess all nonces are there in cached content.
I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues?
NameVirtualHost *:80
#Default catch all ... (5 Replies)
I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Hello,
I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
Hi,
I need help to find values between two different fields based on $6 (NUM) AND $1 (CD), within the same ID. The result should show the values between the NUMs which will be extracted from within $3 and $2 in data.txt file below.
data.txt
ex 139 142 Sc_1000004 ID 4
CD ... (2 Replies)
can anyone help me to write a script to delete the virtualhost entry in apache vhosts.conf file:
hint: when i enter ./deletedomain test.com it should delete the test.com virtualhost entry from vhosts.conf file (2 Replies)
OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform.
I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform.
I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
I am having problems in implementing the virtual hosts here in my server. I have this one cloud dev server: Amazon Linux AMI release 2013.03 (based on RHEL like CentOS) with Apache 2.2.25 installed and I'm trying to create 2 virtual hosts: test-kalc.tk and test2-kalc.tk.
If I go to... (2 Replies)
hi,
Earlier I had this thread posted on "UNIX for Experts" Group here in unix.com, but somehow no one bothered to respond, so I thought someone might be able to help me here.
In short,
I have to make accessible a directory via SVN to all 5 developers, call it /var/www/html/beta3
... (0 Replies)
Hello everyone,
Is it possible to have a precise progress bar in zenity during the execution of the following:
find -type f \( -not -name "$file_name".md5 \) -exec md5sum '{}' \; > "$file_name".md5Currently I am using
zenity --title="Running..." --progress --pulsate --auto-close... (1 Reply)
Discussion started by: soichiro
1 Replies
LEARN ABOUT DEBIAN
app::cache
App::Cache(3pm) User Contributed Perl Documentation App::Cache(3pm)NAME
App::Cache - Easy application-level caching
SYNOPSIS
# in your class:
my $cache = App::Cache->new({ ttl => 60*60 });
$cache->delete('test');
my $data = $cache->get('test');
my $code = $cache->get_code("code", sub { $self->calculate() });
my $html = $cache->get_url("http://www.google.com/");
$cache->set('test', 'one');
$cache->set('test', { foo => 'bar' });
my $scratch = $cache->scratch;
$cache->clear;
DESCRIPTION
The App::Cache module lets an application cache data locally. There are a few times an application would need to cache data: when it is
retrieving information from the network or when it has to complete a large calculation.
For example, the Parse::BACKPAN::Packages module downloads a file off the net and parses it, creating a data structure. Only then can it
actually provide any useful information for the programmer. Parse::BACKPAN::Packages uses App::Cache to cache both the file download and
data structures, providing much faster use when the data is cached.
This module stores data in the home directory of the user, in a dot directory. For example, the Parse::BACKPAN::Packages cache is actually
stored underneath "~/.parse_backpan_packages/cache/". This is so that permisssions are not a problem - it is a per-user, per-application
cache.
METHODS
new
The constructor creates an App::Cache object. It takes three optional parameters:
o ttl contains the number of seconds in which a cache entry expires. The default is 30 minutes.
my $cache = App::Cache->new({ ttl => 30*60 });
o application sets the application name. If you are calling new() from a class, the application is automagically set to the calling
class, so you should rarely need to pass it in:
my $cache = App::Cache->new({ application => 'Your::Module' });
o directory sets the directory to be used for the cache. Normally this is just set for you and will be based on the application name and
be created in the users home directory. Sometimes for testing, it can be useful to set this.
my $cache = App::Cache->new({ directory => '/tmp/your/cache/dir' });
o enabled can be set to 0 for testing, in which case you will always get cache misses:
my $cache = App::Cache->new({ enabled => 0 });
clear
Clears the cache:
$cache->clear;
delete
Deletes an entry in the cache:
$cache->delete('test');
get
Gets an entry from the cache. Returns undef if the entry does not exist or if it has expired:
my $data = $cache->get('test');
get_code
This is a convenience method. Gets an entry from the cache, but if the entry does not exist, set the entry to the value of the code
reference passed:
my $code = $cache->get_code("code", sub { $self->calculate() });
get_url
This is a convenience method. Gets the content of a URL from the cache, but if the entry does not exist, set the entry to the content of
the URL passed:
my $html = $cache->get_url("http://www.google.com/");
scratch
Returns a directory in the cache that the application may use for scratch files:
my $scratch = $cache->scratch;
set
Set an entry in the cache. Note that an entry value may be an arbitrary Perl data structure:
$cache->set('test', 'one');
$cache->set('test', { foo => 'bar' });
directory
Returns the full path to the cache directory. Primarily useful for when you are writing tests that use App::Cache and want to clean up
after yourself. If you are doing that you may want to explicitly set the 'application' constructor parameter to avoid later cleaning up a
cache dir that was already in use.
my $dir = $cache->directory;
AUTHOR
Leon Brocard <acme@astray.com>
COPYRIGHT
Copyright (C) 2005-7, Leon Brocard
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.12.3 2009-12-08 App::Cache(3pm)